package com.hll.erp.util;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author Mr.Hu
 * @since 2021-07-04 20:55
 */
// 读取自定义properties文件
@Component
@PropertySource("classpath:shiro.properties")
@Getter
@Setter
public class PropertiesUtil {
  @Value("${shiro.algorithm}")
  private String algorithm;

  @Value("${shiro.algorithm.iteration}")
  private Integer hashIteration;
}
